#include <stdio.h>
double x,y,h,c,j,s;
int main(void)
{
	scanf("%lf",&x);
	scanf("%lf",&y);
	
	h = x+y;
	c = x-y;
	j = x*y;
	s = x/y;
	
	printf("x+y = %lf.\nx-y = %lf.\nx*y = %lf.\nx/y = %lf.\n",h,c,j,s);
	
	printf("x%%y=%d",(int)x%(int)y);
	return 0;
}

